# generated Member form--------------------begin
from django.forms import ModelForm, HiddenInput, forms
from cms.models import *
from django.forms import ModelForm,Textarea

class ChannelForm(ModelForm):
    class Meta:
        model=Channel
        exclude=[]

class ArticleForm(ModelForm):
    class Meta:
        model=Article
        widgets={'content':Textarea}
        exclude=['publishDatetime','hitCount','flag']


class BannerForm(ModelForm):
    f = forms.FileField(label='名称',required=False)

    class Meta:
        model=Banner
        exclude=['file']
